* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.profile {
    margin-bottom: 30px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 20px;
    object-fit: cover;  /* 添加这行确保图片不变形 */
    object-position: center;  /* 确保图片居中显示 */
}

nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #667eea;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
}

.experience-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.period {
    color: #666;
    font-style: italic;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.skill-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #667eea;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin: 15px 0;
}

.contact-info i {
    margin-right: 10px;
    color: #667eea;
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .container {
        padding: 0 15px;
    }
}

.basic-info {
    margin-top: 20px;
}

.basic-info span {
    display: inline-block;
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.9);
}

.basic-info i {
    margin-right: 8px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.core-skills ul {
    list-style: none;
    padding: 0;
}

.core-skills li {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.certificates {
    margin-top: 40px;
}

.certificates h3 {
    color: #2d3748;
    margin-bottom: 20px;
}

.certificates ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.certificates li {
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certificates i {
    color: #667eea;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .basic-info span {
        display: block;
        margin: 10px 0;
    }

    .certificates ul {
        flex-direction: column;
    }
}

/* 项目列表样式 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid #667eea;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-header {
    margin-bottom: 15px;
}

.project-card-header h3 {
    color: #2d3748;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.project-type {
    display: inline-block;
    font-size: 0.85em;
    color: #667eea;
    background: rgba(102,126,234,0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.project-desc {
    color: #4a5568;
    font-size: 0.9em;
    margin: 10px 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
}

.project-link i {
    margin-right: 5px;
}

.project-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-overview {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.overview-title {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.project-tag {
    background: white;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.project-tag i {
    font-size: 1.1em;
}

.project-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.2);
    background: #667eea;
    color: white;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-header {
    margin-bottom: 15px;
}

.project-card-header h3 {
    color: #2d3748;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.project-type {
    display: inline-block;
    font-size: 0.85em;
    color: #667eea;
    background: rgba(102,126,234,0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.project-desc {
    color: #4a5568;
    font-size: 0.9em;
    margin: 10px 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
}

.project-link i {
    margin-right: 5px;
}

.project-link:hover {
    text-decoration: underline;
}

.project-overview {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.overview-title {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.project-tag {
    background: white;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.project-tag i {
    font-size: 1.1em;
}

.project-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.2);
    background: #667eea;
    color: white;
}

@media (max-width: 768px) {
    .project-overview {
        padding: 20px 15px;
    }
    
    .project-tag {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-content {
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.project-content h4 {
    color: #2d3748;
    font-size: 1em;
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-content h4 i {
    color: #667eea;
}

.project-intro p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-responsibility ul {
    list-style: none;
    padding-left: 0;
}

.project-responsibility li {
    color: #4a5568;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.project-responsibility li:before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
}

.achievement-items {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.achievement-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.achievement-number {
    display: block;
    color: #667eea;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-label {
    color: #718096;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .achievement-items {
        flex-direction: column;
        gap: 10px;
    }
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.achievement-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.1);
}

.achievement-card i {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.achievement-card h5 {
    color: #2d3748;
    margin: 10px 0;
    font-size: 1em;
}

.achievement-card p {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

.achievement-cards {
    margin-top: 15px;
}

.achievement-highlight {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-highlight i {
    color: #667eea;
    font-size: 1.5em;
}

.achievement-highlight p {
    color: #4a5568;
    margin: 0;
    font-size: 0.95em;
}

.achievement-highlight-special {
    background: linear-gradient(to right, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-left: 4px solid #667eea;
}

.achievement-highlight-special .achievement-icon {
    background: rgba(102,126,234,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-highlight-special .achievement-content {
    flex: 1;
}

.achievement-highlight-special h5 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1em;
}

.achievement-highlight-special p {
    margin: 0;
    font-size: 0.9em;
    color: #4a5568;
}

.achievement-clients h5 {
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-clients h5 i {
    color: #667eea;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-tags span {
    background: rgba(102,126,234,0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .client-tags {
        gap: 8px;
    }
    
    .client-tags span {
        font-size: 0.85em;
    }
}

/* 工作经历部分样式优化 */
.experience-items {
    position: relative;
    padding-left: 32px;
}

.experience-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea 0%, #764ba2 100%);
}

.experience-item {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.experience-header h3 {
    color: #2d3748;
    font-size: 1.2em;
    margin: 0;
}

.period {
    color: #667eea;
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(102,126,234,0.1);
    border-radius: 20px;
}

.position {
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.experience-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #4a5568;
    line-height: 1.6;
}

.experience-item ul li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .experience-items {
        padding-left: 20px;
    }
    
    .experience-item::before {
        left: -28px;
        width: 12px;
        height: 12px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .period {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .project-overview {
        padding: 20px 15px;
    }
    
    .project-tag {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-content {
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.project-content h4 {
    color: #2d3748;
    font-size: 1em;
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-content h4 i {
    color: #667eea;
}

.project-intro p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-responsibility ul {
    list-style: none;
    padding-left: 0;
}

.project-responsibility li {
    color: #4a5568;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.project-responsibility li:before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
}

.achievement-items {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.achievement-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.achievement-number {
    display: block;
    color: #667eea;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-label {
    color: #718096;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .achievement-items {
        flex-direction: column;
        gap: 10px;
    }
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.achievement-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.1);
}

.achievement-card i {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.achievement-card h5 {
    color: #2d3748;
    margin: 10px 0;
    font-size: 1em;
}

.achievement-card p {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

.achievement-cards {
    margin-top: 15px;
}

.achievement-highlight {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-highlight i {
    color: #667eea;
    font-size: 1.5em;
}

.achievement-highlight p {
    color: #4a5568;
    margin: 0;
    font-size: 0.95em;
}

.achievement-highlight-special {
    background: linear-gradient(to right, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-left: 4px solid #667eea;
}

.achievement-highlight-special .achievement-icon {
    background: rgba(102,126,234,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-highlight-special .achievement-content {
    flex: 1;
}

.achievement-highlight-special h5 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1em;
}

.achievement-highlight-special p {
    margin: 0;
    font-size: 0.9em;
    color: #4a5568;
}

.achievement-clients h5 {
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-clients h5 i {
    color: #667eea;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.client-tags span {
    background: rgba(102,126,234,0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .client-tags {
        gap: 8px;
    }
    
    .client-tags span {
        font-size: 0.85em;
    }
}

/* 项目卡片悬停提示 */
.project-card {
    cursor: pointer;
}

.project-card::after {
    content: "点击查看详情";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover::after {
    opacity: 1;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: #718096;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #667eea;
}

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.modal-header h3 {
    font-size: 1.5em;
    color: #2d3748;
    margin-bottom: 10px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f7fafc;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* 项目详情页导航 */
.project-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}

.project-nav-item {
    color: #718096;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.project-nav-item.active {
    background: #667eea;
    color: white;
}

.project-nav-item:hover:not(.active) {
    background: rgba(102,126,234,0.1);
    color: #667eea;
}